var mongoose = require('../data/db').mongoose;
var Schema =  mongoose.Schema;
var schema = new mongoose.Schema({
    depname:String,
    startusedstate:{type : String, default : '0'},//启用状态 0 启用 1启用
    isdelete:{type : String, default : '0'},//删除状态 0未删除 1已删除
    createtime:{type : Date, default: Date.now},
    updatetime:{type : Date, default: Date.now},
});

var department = mongoose.model('departments',schema);
module.exports  = department;